﻿#pragma once

#include <breaking/log/log_appender.h>

namespace breaking
{
	/**
	 * @brief 控制台日志输出器
	 */
	struct log_event;
	class console_log_appender : public log_appender
	{
	public:
		console_log_appender();
		virtual ~console_log_appender();

	protected:
		virtual bool do_open() override;
		virtual bool do_append(const log_event& event) override;
		virtual void do_close() override;
	};
}